package com.dingtao.common.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class CheckInfo {

    @JSONField(name = "continuous")
    private int continuous;
    @JSONField(name = "item")
    private ItemDTO item;
    @JSONField(name = "todaySignIn")
    private boolean todaySignIn;
    @JSONField(name = "weeks")
    private List<WeeksDTO> weeks;

    public int getContinuous() {
        return continuous;
    }

    public void setContinuous(int continuous) {
        this.continuous = continuous;
    }

    public ItemDTO getItem() {
        return item;
    }

    public void setItem(ItemDTO item) {
        this.item = item;
    }

    public boolean isTodaySignIn() {
        return todaySignIn;
    }

    public void setTodaySignIn(boolean todaySignIn) {
        this.todaySignIn = todaySignIn;
    }

    public List<WeeksDTO> getWeeks() {
        return weeks;
    }

    public void setWeeks(List<WeeksDTO> weeks) {
        this.weeks = weeks;
    }

    @NoArgsConstructor
    @Data
    public static class ItemDTO {
        @JSONField(name = "signIn")
        private int signIn;
        @JSONField(name = "week")
        private int week;

        public int getSignIn() {
            return signIn;
        }

        public void setSignIn(int signIn) {
            this.signIn = signIn;
        }

        public int getWeek() {
            return week;
        }

        public void setWeek(int week) {
            this.week = week;
        }
    }

    @NoArgsConstructor
    @Data
    public static class WeeksDTO {
        @JSONField(name = "signIn")
        private int signIn;
        @JSONField(name = "week")
        private int week;

        public int getSignIn() {
            return signIn;
        }

        public void setSignIn(int signIn) {
            this.signIn = signIn;
        }

        public int getWeek() {
            return week;
        }

        public void setWeek(int week) {
            this.week = week;
        }
    }
}
